package model

import "gorm.io/gorm"

// 用户表
type User struct {
	gorm.Model
	Phone    string  `gorm:"type:varchar(11);commit:手机号"`
	Password string  `gorm:"type:varchar(32);commit:密码"`
	NickName string  `gorm:"type:varchar(20);commit:用户昵称"`
	Avatar   string  `gorm:"type:varchar(255);commit:头像URL"`
	RelaName string  `gorm:"type:varchar(19);commit:身份证"`
	Status   int     `gorm:"type:int;commit:状态: 1-正常 2-封禁"`
	Balance  float32 `gorm:"type:decimal(10,2);commit:账户余额"`
}
